package com.ruoyi.web.lccl.controller;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.web.lccl.domain.Lccl;
import com.ruoyi.web.lccl.service.YjILcclService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 流程处理信息Controller
 *
 * @author ruoyi
 * @date 2024-06-24
 */
@RestController
@RequestMapping("/system/lccl")
public class LcclController extends BaseController
{
    @Autowired
    private YjILcclService lcclService;


    /**
     * 新增流程处理信息
     */
    @PreAuthorize("@ss.hasPermi('system:lccl:add')")
    @Log(title = "流程处理信息", businessType = BusinessType.INSERT)
    @PostMapping("/addLccl")
    public AjaxResult addLccl(@RequestBody Lccl lccl)
    {
        return toAjax(lcclService.addLccl(lccl));
    }
}
